import 'package:flutter/material.dart';
import 'package:flutter_app/global/color_config.dart';
import 'package:flutter_app/login/event/login_event.dart';
import 'package:flutter_app/util/event_util.dart';

class LoginPageViewWidget extends StatefulWidget {
  const LoginPageViewWidget({super.key});

  @override
  LoginPageViewPage createState() => LoginPageViewPage();
}

class LoginPageViewPage extends State<LoginPageViewWidget> {
  @override
  Widget build(BuildContext context) {

    return SizedBox(
      width: double.infinity,
      height: double.infinity,
      child: Container(
        padding: const EdgeInsets.only(top: 70),
        child: Column(
          children: [
            InkWell(
              onTap: (){
                print("跳转到注册");
                EventUtil.getEvent.fire(LoginEvent(1));
              },
              child: Row(
                mainAxisSize: MainAxisSize.max,
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Text(
                    "去注册 ",
                    style: TextStyle(color: ColorConfig.themeColor, fontSize: 14),
                  ),
                  const Image(
                    image: AssetImage("images/icon_goto_registered.png"),
                    width: 12,
                    height: 12,
                  )
                ],
              ),
            )
          ],
        ),
      ),
    );
  }
}
